package src.jdk8;

/**
 * @author jack.wu
 * @version 1.0
 * @date 2020/5/26
 */
public class InterfaceDemoImpl implements InterfaceDemo{

    public static void main(String[] args) {

        InterfaceDemo.staticMethod();

        InterfaceDemoImpl interfaceDemoImpl = new InterfaceDemoImpl();
        interfaceDemoImpl.defaultMethod();
        interfaceDemoImpl.abstractMethod();
    }

    @Override
    public void abstractMethod() {
        System.out.println("接口中的抽象方法需要子类实现");
    }
}
